package com.gopay.common.domain.dps;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 移动端扫码支付业务表
 * 
 * @author tangyang 20171205
 */
@Entity
@Table(name = "WA_SCAN_CODE_PAY")
public class WaScanCodePay implements Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "TRANS_DTL_SQ", unique = true, nullable = false, length = 30)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "WA_SCAN_CODE_PAY_SEQ")
	@SequenceGenerator(name = "WA_SCAN_CODE_PAY_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "WA_SCAN_CODE_PAY_SEQ")
	private int transDtlSq;
	@Column(name = "MER_ID")
	private String merId;
	@Column(name = "MER_ORDER_ID")
	private String merOrderId;
	@Column(name = "MER_TXN_CD")
	private String merTxnCd;
	@Column(name = "MER_TXN_TM")
	@Temporal(TemporalType.TIMESTAMP)
	private Date merTxnTm;
	@Column(name = "GOPAY_TXN_TM")
	@Temporal(TemporalType.TIMESTAMP)
	private Date gopayTxnTm;
	@Column(name = "MER_TXN_AMT", nullable = false, precision = 20)
	private BigDecimal merTxnAmt;
	@Column(name = "CUR_TYPE")
	private String curType;
	@Column(name = "MER_NOTIFY_STAT")
	private String merNotifyStat;
	@Column(name = "MAIN_RECV_ACCT")
	private String mainRecvAcct;
	@Column(name = "RECV_CUST_ID")
	private String recvCustId;
	@Column(name = "GOODS_NAME")
	private String goodsName;
	@Column(name = "BUYER_CUST_ID")
	private String buyerCustId;
	@Column(name = "BUYER_ACCT_ID")
	private String buyerAcctId;
	@Column(name = "BUYER_NAME")
	private String buyerName;
	@Column(name = "BUYER_CONTACT")
	private String buyerContact;
	@Column(name = "CREATED_TS")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdTs;
	@Column(name = "LAST_UPD_TS")
	@Temporal(TemporalType.TIMESTAMP)
	private Date lastUpdTs;
	@Column(name = "MER_ORDER_TRAN_IP")
	private String merOrderTranIp;
	@Column(name = "PAY_CUST_ID")
	private String payCustId;
	@Column(name = "PAY_ACCT_ID")
	private String payAcctId;
	@Column(name = "SEND_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date sendTime;
	@Column(name = "MER_NOTIFY_FRONT_URL")
	private String merNotifyFrontUrl;
	@Column(name = "MER_NOTIFY_SERVER_URL")
	private String merNotifyServerUrl;
	@Column(name = "REMARK1")
	private String remark1;
	@Column(name = "BUYER_MSG")
	private String buyerMsg;
	@Column(name = "PAY_MSG")
	private String payMsg;
	@Column(name = "RSP_CODE")
	private String rspCode;
	@Column(name = "GATEWAY_VERSION")
	private String gatewayVersion;
	@Column(name = "GOPAY_ORDER_ID")
	private String gopayOrderId;
	@Column(name = "ORDER_STATUS")
	private int orderStatus;

	public int getTransDtlSq() {
		return transDtlSq;
	}

	public void setTransDtlSq(int transDtlSq) {
		this.transDtlSq = transDtlSq;
	}

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getMerOrderId() {
		return merOrderId;
	}

	public void setMerOrderId(String merOrderId) {
		this.merOrderId = merOrderId;
	}

	public String getMerTxnCd() {
		return merTxnCd;
	}

	public void setMerTxnCd(String merTxnCd) {
		this.merTxnCd = merTxnCd;
	}

	public Date getMerTxnTm() {
		return merTxnTm;
	}

	public void setMerTxnTm(Date merTxnTm) {
		this.merTxnTm = merTxnTm;
	}

	public Date getGopayTxnTm() {
		return gopayTxnTm;
	}

	public void setGopayTxnTm(Date gopayTxnTm) {
		this.gopayTxnTm = gopayTxnTm;
	}

	public BigDecimal getMerTxnAmt() {
		return merTxnAmt;
	}

	public void setMerTxnAmt(BigDecimal merTxnAmt) {
		this.merTxnAmt = merTxnAmt;
	}

	public String getCurType() {
		return curType;
	}

	public void setCurType(String curType) {
		this.curType = curType;
	}

	public String getMerNotifyStat() {
		return merNotifyStat;
	}

	public void setMerNotifyStat(String merNotifyStat) {
		this.merNotifyStat = merNotifyStat;
	}

	public String getMainRecvAcct() {
		return mainRecvAcct;
	}

	public void setMainRecvAcct(String mainRecvAcct) {
		this.mainRecvAcct = mainRecvAcct;
	}

	public String getRecvCustId() {
		return recvCustId;
	}

	public void setRecvCustId(String recvCustId) {
		this.recvCustId = recvCustId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getBuyerCustId() {
		return buyerCustId;
	}

	public void setBuyerCustId(String buyerCustId) {
		this.buyerCustId = buyerCustId;
	}

	public String getBuyerAcctId() {
		return buyerAcctId;
	}

	public void setBuyerAcctId(String buyerAcctId) {
		this.buyerAcctId = buyerAcctId;
	}

	public String getBuyerName() {
		return buyerName;
	}

	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}

	public String getBuyerContact() {
		return buyerContact;
	}

	public void setBuyerContact(String buyerContact) {
		this.buyerContact = buyerContact;
	}

	public Date getCreatedTs() {
		return createdTs;
	}

	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}

	public Date getLastUpdTs() {
		return lastUpdTs;
	}

	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}

	public String getMerOrderTranIp() {
		return merOrderTranIp;
	}

	public void setMerOrderTranIp(String merOrderTranIp) {
		this.merOrderTranIp = merOrderTranIp;
	}

	public String getPayCustId() {
		return payCustId;
	}

	public void setPayCustId(String payCustId) {
		this.payCustId = payCustId;
	}

	public String getPayAcctId() {
		return payAcctId;
	}

	public void setPayAcctId(String payAcctId) {
		this.payAcctId = payAcctId;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getMerNotifyFrontUrl() {
		return merNotifyFrontUrl;
	}

	public void setMerNotifyFrontUrl(String merNotifyFrontUrl) {
		this.merNotifyFrontUrl = merNotifyFrontUrl;
	}

	public String getMerNotifyServerUrl() {
		return merNotifyServerUrl;
	}

	public void setMerNotifyServerUrl(String merNotifyServerUrl) {
		this.merNotifyServerUrl = merNotifyServerUrl;
	}

	public String getRemark1() {
		return remark1;
	}

	public void setRemark1(String remark1) {
		this.remark1 = remark1;
	}

	public String getBuyerMsg() {
		return buyerMsg;
	}

	public void setBuyerMsg(String buyerMsg) {
		this.buyerMsg = buyerMsg;
	}

	public String getPayMsg() {
		return payMsg;
	}

	public void setPayMsg(String payMsg) {
		this.payMsg = payMsg;
	}

	public String getRspCode() {
		return rspCode;
	}

	public void setRspCode(String rspCode) {
		this.rspCode = rspCode;
	}

	public String getGatewayVersion() {
		return gatewayVersion;
	}

	public void setGatewayVersion(String gatewayVersion) {
		this.gatewayVersion = gatewayVersion;
	}

	public String getGopayOrderId() {
		return gopayOrderId;
	}

	public void setGopayOrderId(String gopayOrderId) {
		this.gopayOrderId = gopayOrderId;
	}

	public int getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}

	@Override
	public String toString() {
		return "WaScanCodePay [transDtlSq=" + transDtlSq + ", merId=" + merId + ", merOrderId=" + merOrderId
				+ ", merTxnCd=" + merTxnCd + ", merTxnTm=" + merTxnTm + ", gopayTxnTm=" + gopayTxnTm + ", merTxnAmt="
				+ merTxnAmt + ", curType=" + curType + ", merNotifyStat=" + merNotifyStat + ", mainRecvAcct="
				+ mainRecvAcct + ", recvCustId=" + recvCustId + ", goodsName=" + goodsName + ", buyerCustId="
				+ buyerCustId + ", buyerAcctId=" + buyerAcctId + ", buyerName=" + buyerName + ", buyerContact="
				+ buyerContact + ", createdTs=" + createdTs + ", lastUpdTs=" + lastUpdTs + ", merOrderTranIp="
				+ merOrderTranIp + ", payCustId=" + payCustId + ", payAcctId=" + payAcctId + ", sendTime=" + sendTime
				+ ", merNotifyFrontUrl=" + merNotifyFrontUrl + ", merNotifyServerUrl=" + merNotifyServerUrl
				+ ", remark1=" + remark1 + ", buyerMsg=" + buyerMsg + ", payMsg=" + payMsg + ", rspCode=" + rspCode
				+ ", gatewayVersion=" + gatewayVersion + ", gopayOrderId=" + gopayOrderId + ", orderStatus="
				+ orderStatus + "]";
	}

}
